package testGameLogic;

import java.util.HashMap;

import YAPserver.logic.ClassicModel;
import YAPserver.logic.Game;
import YAPserver.logic.Player;

import static org.junit.Assert.*;

import org.junit.*;

/*
 * Replaced by TestGame in testGameWithGui.
 */

public class UnitTestGame {
	static Game game = new Game(3);
	static HashMap<Integer, Player> players = new HashMap<Integer, Player>();
	
	@Before
	public void setup(){
		game.setField(3, 0, true);
		for(int i=0; i<3; i++){
			players.put(i, new Player(i));
		}
		game.setPlayers(players);
		
		HashMap<Integer,Integer> playerSliders = new HashMap<Integer, Integer>();
		for(int i=0; i<players.size(); i++){
			players.put(i, new Player(i));
			playerSliders.put(i, i);
		}
		
		game.setGameModel(new ClassicModel(), playerSliders);
	}
	
	@Test
	public void testRun(){
		game.start();
//		System.out.println(winner);
	}
}
